/**************************************************************************************************
* Title: SumFileLoading.h
* Author: Gael Huber
* Description: Defines several utility functions for generic file loading.
**************************************************************************************************/
#ifndef __SUMFILELOADING_H__
#define __SUMFILELOADING_H__

#include <fstream>
#include "SumString.h"

using namespace std;

// Calculates the filesize in bytes of a file
void GetFileSize(ifstream& file, long& size);

// Read the file and store the information in the array provided
void ReadFile(ifstream& file, unsigned char* data, long size);

// Read a line from a file
void ReadLine(fstream& stream, char* cLine, String& sLine, streamsize count = 256);

#endif